package com.liu;

import com.liu.factory.AbstractFactory1;
import com.liu.factory.impl.FactoryImpl1;
import com.liu.product.Product;

public class AbstractFactory {
    public static void main(String[] args) {
        Product product = null;
        AbstractFactory1 abstractFactory = new FactoryImpl1();
        try {
            product = abstractFactory.newProductA();
            product.name();
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
